﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BackEnd/BackEndMasterPage.Master" AutoEventWireup="true"
    CodeBehind="Newsletter.aspx.cs" Inherits="AteneoLibri.BackEnd.Newsletter" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Invia messaggio alla newsletter
    </h2>
    <asp:Panel ID="pnlWYSIWYG" runat="server">
        <CKEditor:CKEditorControl ID="CKEditor1" BasePath="~/ckeditor" runat="server"></CKEditor:CKEditorControl>
        <asp:DropDownList ID="ddlMarketingNewsletter" runat="server">
            <asp:ListItem Selected="True" Value="0">-- Seleziona --</asp:ListItem>
            <asp:ListItem Value="1">Comunicazioni interne</asp:ListItem>
            <asp:ListItem Value="2">Pubblicità AteneoLibri</asp:ListItem>
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="rfvNewsletterType" runat="server" ErrorMessage="* Selezionare una delle opzioni" CssClass="failureNotification"
            ControlToValidate="ddlMarketingNewsletter" InitialValue="0"></asp:RequiredFieldValidator>
        <div style="margin-top: 20px;">
            <asp:Button ID="btnSendEmail" runat="server" Text="Invia avviso" CssClass="StandardButton"
                OnClick="btnSendEmail_Click"></asp:Button>
        </div>
    </asp:Panel>
    <asp:Panel ID="pnlConfirmSendEmail" runat="server" Visible="false">
        <table>
            <tr>
                <td>
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/icon-success.png" />
                </td>
                <td style="vertical-align: middle; padding-left: 20px;">
                    <asp:Label ID="Label1" Text="Email inviate con successo!" runat="server" CssClass="failureNotification"></asp:Label>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
